package io.xiaojl.xj2ee.modules.sys.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import io.xiaojl.xj2ee.modules.sys.entity.SysUserEntity;

@Mapper
public interface SysUserEntityMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(SysUserEntity record);

    int insertSelective(SysUserEntity record);

    SysUserEntity selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUserEntity record);

    int updateByPrimaryKey(SysUserEntity record);

	/**  
	 * <p>Title: selectListByPage</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param condition
	 * @return  
	 */ 
	List<SysUserEntity> selectListByPage(Map<String, Object> condition);

	/**
	 * 查询用户的所有权限
	 * @param userId  用户ID
	 */
	List<String> queryAllPerms(Long userId);
	
	/**
	 * 查询用户的所有菜单ID
	 */
	List<Long> queryAllMenuId(Long userId);

	/**  
	 * <p>Title: deleteBatchIds</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param userIds
	 * @return  
	 */ 
	int deleteBatchIds(Long[] userIds);

	/**  
	 * <p>Title: selectOne</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param user
	 * @return  
	 */ 
	SysUserEntity selectOne(SysUserEntity user);
}